package dialer.ws.base.entity.vtelcom;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ListDetail entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "list_detail", schema = "vtelcom_call_center")
public class ListDetail implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1501178705460005946L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_formulary_detail", nullable = false)
	private FormularyDetail formularyDetail;

	@Column(name = "name", nullable = false)
	private String name;

	// Constructors

	/** default constructor */
	public ListDetail() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public FormularyDetail getFormularyDetail() {
		return formularyDetail;
	}

	public void setFormularyDetail(FormularyDetail formularyDetail) {
		this.formularyDetail = formularyDetail;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}